﻿using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.StatementManage
{
    /// <summary>
    /// 库存台账
    /// </summary>
    public class InventoryBook : KeyEntity
    {
        /// <summary>
        /// 产品编号
        /// </summary>
        [MaxLength(30)]
        public string? ProductCode { get; set; }

        /// <summary>
        /// 产品批次
        /// </summary>
        [MaxLength(30)]
        public string? ProductBatch { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [MaxLength(30)]
        public string? Type { get; set; }

        /// <summary>
        /// 仓库Id
        /// </summary>
        public int WarehouseId { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Number { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [MaxLength(10)]
        public string? Unit { get; set; }

        /// <summary>
        /// 原库位
        /// </summary>
        [MaxLength(20)]
        public string? OriginalStorage { get; set; }

        /// <summary>
        /// 目标仓库
        /// </summary>
        [MaxLength(20)]
        public string? TargetWarehouse { get; set; }

        /// <summary>
        /// 目标库位
        /// </summary>
        [MaxLength(20)]
        public string? TargetLocation { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime InventoryBookDate { get; set; }
    }
}
